package com.awesome.servicedemo;

import android.content.ComponentName;
import android.os.IBinder;

import com.awesome.common.util.log.ShowLogUtil;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2022/7/1
 * Description:类描述
 */
public class MyServiceConnection implements android.content.ServiceConnection {
    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        ShowLogUtil.info("onServiceConnected()");
        MyService.MyBinder binder = (MyService.MyBinder) service;
        int progress = binder.getProgress();
        ShowLogUtil.info("progress=" + progress);
    }

    @Override
    public void onServiceDisconnected(ComponentName name) {
        ShowLogUtil.info("onServiceDisconnected()");

    }
}
